package com.irdstudio.efp.console.service.dao;

import java.util.List;

import com.irdstudio.efp.console.service.domain.PrdApplyRule;
import com.irdstudio.efp.console.service.vo.PrdApplyRuleVO;
/**
 * <p>DAO interface:产品申请规则关联信息表				<p>
 * @author fuzm
 * @date 2018-06-23
 */
public interface PrdApplyRuleDao {
	
	public int insertPrdApplyRule(PrdApplyRule prdApplyRule);
	
	public int deleteByPk(PrdApplyRule prdApplyRule);
	
	public int updateByPk(PrdApplyRule prdApplyRule);
	
	public PrdApplyRule queryByPk(PrdApplyRule prdApplyRule);
	
	public List<PrdApplyRule> queryAllOwnerByPage(PrdApplyRuleVO prdApplyRule);
	
	public List<PrdApplyRule> queryAllCurrOrgByPage(PrdApplyRuleVO prdApplyRule);
	
	public List<PrdApplyRule> queryAllCurrDownOrgByPage(PrdApplyRuleVO prdApplyRule);
	
	public List<PrdApplyRule> queryAllByBizSerno(PrdApplyRuleVO prdApplyRule);

	/**
	 * 删除申请流水号下所有关联规则信息
	 * @param prdApplyRule
	 * @return
	 */
	public int deleteByBizSerno(PrdApplyRule prdApplyRule);
}
